Skip to content

Conversation

@ritikbhatt20
Copy link
Contributor

@ritikbhatt20 ritikbhatt20 commented Oct 26, 2024

  • added the create-token poseidon program in the /tokens/create-token/poseidon directory.
    - Note: Poseidon's transpiler does not compile initializeMint function of poseidon library to rust yet, so this is done manually in lib.rs using Anchor's InitializeMint.
    I have raised issue to poseidon for this: Issue in Transpilation of Poseidon to Anchor Rust – In initializeMint function Turbin3/poseidon#21

  • Required to include "anchor-spl" and anchor-lang = { version = "0.30.1", features = ["init-if-needed"] } dependency using cargo
    and add "anchor-spl/idl-build" to idl-build list

  • replaced all occurrences of yarn with pnpm

  • wrote tests using both Solana Bankrun framework and Anchor native test

  • executed pnpm fix

  • commited pnpm-lock.yaml to the repository

Screenshot (569)

@ritikbhatt20 ritikbhatt20 changed the title added tokens/create-token/poseidon Added tokens/create-token/poseidon Oct 26, 2024
@heyAyushh heyAyushh added contribute:poseidon Adds a poseidon example contribution to the repository. create-token tokens/create-token labels Nov 15, 2024
@ritikbhatt20
Copy link
Contributor Author

gm @heyAyushh ,

I've completed the requested steps:

  1. Merged main into my branch.
  2. Ran pnpm fix.
  3. Verified the implementation includes the transpiled Anchor program and TypeScript files.
  4. Synchronized program ID
  5. Ran cargo fmt and cargo clippy for Rust code quality.
  6. Pushed all updates.

Please review again. Thank you!

@heyAyushh heyAyushh closed this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribute:poseidon Adds a poseidon example contribution to the repository. create-token tokens/create-token

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants